<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Docs For Class Madoqua_Controller_Router_Route_Regex</title>
    <link rel="stylesheet" type="text/css" href="../media/style.css" />
    <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
  </head>
  <body>
  
    <h1>Madoqua :: Docs For Class Madoqua_Controller_Router_Route_Regex</h1>

    <table width="100%">
      <tr valign="top">
        <td class="menu">
                                <div class="package">
              <div id="todolist">
                <p><a href="../todolist.html">Todo List</a></p>
              </div>
            </div>
                    <h2>Packages:</h2>
          <div class="package">
            <ul>
                              <li>
                  <a href="../classtrees_default.html">default</a>
                </li>
                              <li>
                  <a href="../classtrees_Application.html">Application</a>
                </li>
                              <li>
                  <a href="../classtrees_Cache.html">Cache</a>
                </li>
                              <li>
                  <a href="../classtrees_Controller.html">Controller</a>
                </li>
                              <li>
                  <a href="../classtrees_Db.html">Db</a>
                </li>
                              <li>
                  <a href="../classtrees_Filter.html">Filter</a>
                </li>
                              <li>
                  <a href="../classtrees_Form.html">Form</a>
                </li>
                              <li>
                  <a href="../classtrees_Install.html">Install</a>
                </li>
                              <li>
                  <a href="../classtrees_Loader.html">Loader</a>
                </li>
                              <li>
                  <a href="../classtrees_Madoqua_Exception.html">Madoqua_Exception</a>
                </li>
                              <li>
                  <a href="../classtrees_Madoqua_Observer.html">Madoqua_Observer</a>
                </li>
                              <li>
                  <a href="../classtrees_Madoqua_Plugin.html">Madoqua_Plugin</a>
                </li>
                              <li>
                  <a href="../classtrees_Madoqua_View.html">Madoqua_View</a>
                </li>
                              <li>
                  <a href="../classtrees_Module.html">Module</a>
                </li>
                              <li>
                  <a href="../classtrees_Naneau_Plugin.html">Naneau_Plugin</a>
                </li>
                              <li>
                  <a href="../classtrees_Redirector.html">Redirector</a>
                </li>
                              <li>
                  <a href="../classtrees_Search.html">Search</a>
                </li>
                              <li>
                  <a href="../classtrees_Validate.html">Validate</a>
                </li>
                              <li>
                  <a href="../classtrees_View.html">View</a>
                </li>
                          </ul>
          </div>
                                                                    <h2>Classes:</h2>
                <ul>
	<li>Action	    <ul>		<li><a href="../Controller/Action/Madoqua_Controller_Action_Abstract.html">Madoqua_Controller_Action_Abstract</a></li>    </ul></li>	  </ul>
  <ul>
	<li>Plugin	    <ul>		<li><a href="../Controller/Plugin/Madoqua_Controller_Plugin_Access.html">Madoqua_Controller_Plugin_Access</a></li>    </ul></li>	    <ul>		<li><a href="../Controller/Plugin/Madoqua_Controller_Plugin_ActionCache.html">Madoqua_Controller_Plugin_ActionCache</a></li>    </ul></li>	    <ul>		<li><a href="../Controller/Plugin/Madoqua_Controller_Plugin_Layout.html">Madoqua_Controller_Plugin_Layout</a></li>    </ul></li>	  </ul>
  <ul>
	<li>Helper	    <ul>		<li><a href="../Controller/Helper/Madoqua_Controller_Action_Helper_Context.html">Madoqua_Controller_Action_Helper_Context</a></li>    </ul></li>	    <ul>		<li><a href="../Controller/Helper/Madoqua_Controller_Action_Helper_ModelLoader.html">Madoqua_Controller_Action_Helper_ModelLoader</a></li>    </ul></li>	    <ul>		<li><a href="../Controller/Helper/Madoqua_Controller_Action_Helper_ViewRenderer.html">Madoqua_Controller_Action_Helper_ViewRenderer</a></li>    </ul></li>	  </ul>
  <ul>
		    		<li><a href="../Controller/Madoqua_Controller_Action_Helper_FormLoader.html">Madoqua_Controller_Action_Helper_FormLoader</a></li>    	    		<li><a href="../Controller/Madoqua_Controller_Router_Route_Regex.html">Madoqua_Controller_Router_Route_Regex</a></li>    	    		<li><a href="../Controller/Madoqua_Controller_Router_Route_ThemeFile.html">Madoqua_Controller_Router_Route_ThemeFile</a></li>    	  </ul>
                              </td>
        <td>
          <table style="width:750px;" cellpadding="10" cellspacing="10px">
            <tr>
              <td valign="top">
                                                                  <h2>Controller::Madoqua_Controller_Router_Route_Regex</h2>
                                <div class="menu">
          
                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                          [ <a href="../index.html">Index</a> ]
                      [ <a href="../classtrees_Controller.html">Controller classes</a> ]
            [ <a href="../elementindex_Controller.html">Controller elements</a> ]
                    [ <a href="../elementindex.html">All elements</a> ]
          [ <a href="../errors.html">Errors</a> ]
                </div>
<a name="sec-description"></a>
<h2>Class Madoqua_Controller_Router_Route_Regex</h2>

<p>Madoqua_Controller_Router_Route_Regex</p>		


<pre>Zend_Controller_Router_Route_Regex
   |
   --Madoqua_Controller_Router_Route_Regex</pre>










  <a name="sec-method-summary"></a>
  <h2>Method Summary</h2>
  <table class="summary">
                  <tr>
          <td class="right">
            <em>public</em>            static
                        <em>void</em>          </td>
          <td>
            <code>
              <a href="#getInstance"><b>getInstance</b></a>(
                                                                                    $config
                                                 )
            </code>
            <br /><div style="margin-left: 20px">Instantiates route based on passed Zend_Config structure</div>          </td>
        </tr>
                                                <tr>
          <td class="right">
            <em>protected</em>                        <em>array</em>          </td>
          <td>
            <code>
              <a href="#_getMappedValues"><b>_getMappedValues</b></a>(
                                                                                    $values
                                                    ,                   [                  $reversed
                   = false]                                  ,                   [                  $preserve
                   = false]                               )
            </code>
            <br /><div style="margin-left: 20px">Maps numerically indexed array values to it's associative mapped counterpart.</div>          </td>
        </tr>
            </table>


  <a name="sec-methods"></a>
  <h2>Methods</h2>
  <a name='method_detail'></a>
      <a name="methodgetInstance" id="getInstance"><!-- --></a>

    <h3>getInstance</h3>

    <div class="method-signature">
      static void
      getInstance(
                                  
          $config
                        )
    </div>

      <p>Instantiates route based on passed Zend_Config structure</p>      
              <h4>Parameters:</h4>
        <table class="detail">
          <thead>
            <tr>
              <th>Name</th>
              <th>Type</th>
              <th class="desc">Description</th>
            </tr>
          </thead>
          <tbody>
                          <tr>
                <td><code>$config</code></td>
                <td><em>Zend_Config</em></td>
                <td>
                                      Configuration object
                                  </td>
              </tr>
                      </tbody>
        </table>
      
      
      
      
      
    
        <a name="method_getMappedValues" id="_getMappedValues"><!-- --></a>

    <h3>_getMappedValues</h3>

    <div class="method-signature">
      array
      _getMappedValues(
                                  array
          $values
                            ,           [boolean
          $reversed
           = false]                  ,           [boolean
          $preserve
           = false]              )
    </div>

    <p>Maps numerically indexed array values to it's associative mapped counterpart.</p><div><p>Or vice versa. Uses user provided map array which consists of index =&gt; name  parameter mapping. If map is not found, it returns original array.</p><p>Method strips destination type of keys form source array. Ie. if source array is  indexed numerically then every associative key will be stripped. Vice versa if reversed  is set to true.</p></div>
          <h4>Parameters:</h4>
      <table class="detail">
        <thead>
          <tr>
            <th>Name</th>
            <th>Type</th>
            <th class="desc">Description</th>
          </tr>
        </thead>
        <tbody>
                      <tr>
              <td><code>$values</code></td>
              <td><em>array</em></td>
              <td>
                                  Indexed or associative array of values to map
                              </td>
            </tr>
                      <tr>
              <td><code>$reversed</code></td>
              <td><em>boolean</em></td>
              <td>
                                  False means translation of index to association. True means reverse.
                              </td>
            </tr>
                      <tr>
              <td><code>$preserve</code></td>
              <td><em>boolean</em></td>
              <td>
                                  Should wrong type of keys be preserved or stripped.
                              </td>
            </tr>
                  </tbody>
      </table>
    
        

    
    
    
  
<p class="notes">
  Located in <a class="field" href="_Controller---Router---Route---Regex.php.html">/Controller/Router/Route/Regex.php</a> 
  [<span class="field">line 18</span>]
</p>

                <div class="credit">
                  Documentation generated on Fri, 16 Jan 2009 10:14:45 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.2</a>
                </div>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </body>
</html>